<?php /* Smarty version Smarty-3.1.10, created on 2017-01-30 12:23:17
         compiled from "E:\phpStudy\www\templates\adminpage\order\setpaotui.html" */ ?>
<?php /*%%SmartyHeaderCode:8146588ebfb50f4d69-08760681%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'eff81fb992eceba70c3fc9cdc44608f140772566' => 
    array (
      0 => 'E:\\phpStudy\\www\\templates\\adminpage\\order\\setpaotui.html',
      1 => 1483078020,
      2 => 'file',
    ),
    '86dbfeab25bdedc8f1538bcd069cb1bea0ace329' => 
    array (
      0 => 'E:\\phpStudy\\www\\templates\\adminpage\\public\\admin.html',
      1 => 1485748819,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '8146588ebfb50f4d69-08760681',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'tempdir' => 0,
    'siteurl' => 0,
    'is_static' => 0,
    'admininfo' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.10',
  'unifunc' => 'content_588ebfb539c922_22414162',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_588ebfb539c922_22414162')) {function content_588ebfb539c922_22414162($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'E:\\phpStudy\\www\\lib\\Smarty\\libs\\plugins\\modifier.date_format.php';
?>﻿ <html xmlns="http://www.w3.org/1999/xhtml"><head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<meta http-equiv="Content-Language" content="zh-CN"> 
<meta content="all" name="robots"> 
<meta name="description" content=""> 
<meta content="" name="keywords"> 
<title>后台管理中心 </title>  
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/css/admin1.css"> 
 <script src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/jquery.js" type="text/javascript" language="javascript"></script>
 <script src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/public.js" type="text/javascript" language="javascript"></script>
 <script src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/allj.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/artdialog/artDialog.js?skin=blue"></script>
 <script src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>

<script type="text/javascript" language="javascript" src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/artdialog/plugins/iframeTools.js"></script>

 
<script>
	var menu = null;
	var siteurl = "<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
";
	var is_static ="<?php echo $_smarty_tpl->tpl_vars['is_static']->value;?>
";
	if(screen.width > 1359){
		
		$('.newtop').css('width',screen.width);
		$('.newmain').css('width',screen.width);
		$('.newfoot').css('width',screen.width);
	}  
	
</script> 
</head> 
<body> 
<div id="cat_zhe" class="cart_zhe" style="display:none;"></div>
<div id="cat_tj" class="cart_out_cat" style="display:none;"> 数据提交中..</div>
<div class="newtop">
	  <div class="newadddiv">
	  <div class="newlogo">
	  	  <div class="imglogo"><a href="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
" target="_blank"><img src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/images/admin/logo.png"> </a></div>
	  </div>
	  <div class="newtopnav">
	  	 <ul>
	  	  <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tempdir']->value)."/public/admin_module.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
 
	  	 	<ul>
	  	
	  </div>
	</div>
</div> 
<div style="clear:both;"></div>
<div class="newmain">
	<!-- 提示导航-->
   <div class="top_nav">
	    <div class="nav2 datainfo">
	    	<?php echo smarty_modifier_date_format(time(),"%Y-%m-%d");?>
  
	    </div>
	    <div class="nav2 positioninfo" id="positionname2">
	    	网站首页
	    </div>
	    <div class="nav2 orderinfo">
	    	您有今天有0 个订单待审核
	    </div>
   </div>
   <!-- 主内容区-->
   <div class="newmain_all">
   	 <!-- 主内左区-->
   	 <div class="left_content">
   	 	   <!-- 主内左区用户信息-->
   	 	   <div class="userinfo">
   	 	   	   <div class="user_area">
   	 	   	   	      <div class="user_name">
   	 	   	   	      	<?php echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];?>

   	 	   	   	      </div>
   	 	   	   	      <div class="content_url">
   	 	   	   	      	 <a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/member/adminloginout"),$_smarty_tpl);?>
" class="out">退出</a> 
   	 	   	   	      	 <a onClick="modifypwd();" href="#">修改密码</a>
   	 	   	   	      </div>
   	 	   	  </div>
   	 	   	  <div class="now_name" id="nowactioninfo">
   	 	   	    	网站首页
   	 	   	    </div>
   	 	   </div>
   	 	   <!-- 主内左区导航条-->
   	 	    <div class="left_nav">
   	 	    	  <ul> 
   	 	    	  	
   	 	    	  	
   	 	    	  	 <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tempdir']->value)."/public/admin_menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

   	 	    	 
   	 	    	     <li style="text-align:center;"><a href="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
" style="color:#0076cf;" target="_blank">返回网站首页</a></li>
   	 	    	  </ul>
   	 	    </div>
   	 	    <div class="left_navend">
   	 	    </div>
   	 	    <!-- 主内左区天气预报-->
   	 	    <div class="weather" id="weatherinfo" style="display:none;">
   	 	    	 <div class="todayweacher">
   	 	    	      <div class="weacher_left">
   	 	    	      	 <div id="wtoday_img"> </div>
   	 	    	      	 <div><span id="wcity" style="padding-right:5px;"></span><span id="wqihou"></span></div>
   	 	    	      </div>
   	 	    	      <div class="weacher_right" id="wwendu">
   	 	    	      	 
   	 	    	      </div>	 
   	 	    	 </div>
   	 	    	 <div style="clear:both;">
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_1" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_day"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_wendu"></div>
   	 	    	 	   	
   	 	    	 	   	</div>
   	 	    	 	   <div class="tom">
   	 	    	 	   	    <div id="tom_tom" class="tom_img"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_tday"></div>
   	 	    	 	   	    <div class="tom_wendu" id="tom_twendu"></div>
   	 	    	 	   	</div>
   	 	    	 </div>
   	 	    </div>
   	 	     
   	  </div>
   	  
 
 
  
 
 
 <div class="right_content">
	<div class="show_content_m">
   	        	 <div class="show_content_m_ti">
   	        	 	   <div class="showtop_t" id="positionname">跑腿设置</div>
   	        	 </div>
   	        	 <div class="show_content_m_t2">
   	        	 	
   	        	 	 
	
	  <div style="width:auto;overflow-x:hidden;overflow-y:auto;">   
          <div id="tagscontent">
            <form method="post" name="form1" action="<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/order/module/saveset/datatype/json"),$_smarty_tpl);?>
" onsubmit="return subform('',this);">
              <div>
                <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">
                  <tbody>
				    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <th colspan="3" class="center">重量设置</th>                       
                     </tr> 
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <td class="left">重量初始值</td>
                      <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="text" name="kg" id="kg" value="<?php echo $_smarty_tpl->tpl_vars['paotuiinfo']->value['kg'];?>
" class="skey" style="width:50px;">&nbsp;公斤&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					      <input type="text" name="kgcost" id="kgcost" value="<?php echo $_smarty_tpl->tpl_vars['paotuiinfo']->value['kgcost'];?>
" class="skey" style="width:80px;">&nbsp;元
						&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp（比如：5公斤以下10元）
					  </td>
                     </tr>  
					<tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <td class="left">增加设置</td>
                      <td>每增加<input type="text" name="addkg" id="addkg" value="<?php echo $_smarty_tpl->tpl_vars['paotuiinfo']->value['addkg'];?>
" class="skey" style="width:50px;">&nbsp;公斤&nbsp;&nbsp;&nbsp;增加
					      <input type="text" name="addkgcost" id="addkgcost" value="<?php echo $_smarty_tpl->tpl_vars['paotuiinfo']->value['addkgcost'];?>
" class="skey" style="width:80px;">&nbsp;元
						&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp（比如：每增加2公斤增加2元）
					  </td>
                     </tr> 
					 
					  <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <th colspan="3" class="center">距离设置</th>                       
                     </tr> 
					       <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <td class="left">距离初始值</td>
                      <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="text" name="km" id="km" value="<?php echo $_smarty_tpl->tpl_vars['paotuiinfo']->value['km'];?>
" class="skey" style="width:50px;">&nbsp;公里&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					      <input type="text" name="kmcost" id="kmcost" value="<?php echo $_smarty_tpl->tpl_vars['paotuiinfo']->value['kmcost'];?>
" class="skey" style="width:80px;">&nbsp;元
						&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp（比如：1公里以下5元）
					  </td>
                     </tr>  
					<tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <td class="left">增加设置</td>
                      <td>每增加<input type="text" name="addkm" id="addkm" value="<?php echo $_smarty_tpl->tpl_vars['paotuiinfo']->value['addkm'];?>
" class="skey" style="width:50px;">&nbsp;公里&nbsp;&nbsp;&nbsp;增加
					      <input type="text" name="addkmcost" id="addkmcost" value="<?php echo $_smarty_tpl->tpl_vars['paotuiinfo']->value['addkmcost'];?>
" class="skey" style="width:80px;">&nbsp;元
						&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp（比如：每增加2公里增加2元）
					  </td>
                     </tr> 
					 
			 

					 <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <th colspan="3" class="center">时间设置</th>                       
                     </tr> 
					<tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <td class="left">是否支持预定</td>
                      <td>
					 <input type="radio"<?php if ($_smarty_tpl->tpl_vars['paotuiinfo']->value['is_ptorderbefore']==1){?> checked<?php }?> name="is_ptorderbefore" id="" value="1" />是 
					 <input type="radio" name="is_ptorderbefore" id="" value="0" <?php if ($_smarty_tpl->tpl_vars['paotuiinfo']->value['is_ptorderbefore']==0){?> checked<?php }?>/>否 
					 <span id="befortime" <?php if ($_smarty_tpl->tpl_vars['paotuiinfo']->value['is_ptorderbefore']==1){?>style="display:inline-block;" <?php }else{ ?>style="display:none;"<?php }?>>,可预定天数<input type="text"  name="pt_orderday" value="<?php echo $_smarty_tpl->tpl_vars['paotuiinfo']->value['pt_orderday'];?>
" class="ttext" style="width:50px;">1表示只支持当天</span>
					  </td>
                    </tr>
					<?php  $_smarty_tpl->tpl_vars['iteml'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['iteml']->_loop = false;
 $_smarty_tpl->tpl_vars['cdkey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['pstimelist']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['iteml']->key => $_smarty_tpl->tpl_vars['iteml']->value){
$_smarty_tpl->tpl_vars['iteml']->_loop = true;
 $_smarty_tpl->tpl_vars['cdkey']->value = $_smarty_tpl->tpl_vars['iteml']->key;
?>
					   <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <td class="left">配送时间：</td>
                      <td><?php echo $_smarty_tpl->tpl_vars['iteml']->value['s'];?>
-<?php echo $_smarty_tpl->tpl_vars['iteml']->value['e'];?>
  <?php echo $_smarty_tpl->tpl_vars['iteml']->value['i'];?>
 <a href="#" onclick="detimelist(<?php echo $_smarty_tpl->tpl_vars['cdkey']->value;?>
);">删除</a></td>
                    </tr>
					  <?php } ?>
					  <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">
                      <td class="left">配送时间：</td>
                      <td>   <a href="#" onclick="outtimelist();">添加配送时间</a></td>
                    </tr>
		
               
                  </tbody>
                </table>
              </div>
              <div class="blank20"></div>
              <input type="hidden" name="tijiao" id="tijiao" value="do" class="skey" style="width:250px;">
              <input type="hidden" name="saction" id="saction" value="siteset" class="skey" style="width:250px;">
               <input type="submit" value="确认提交" class="button">  
            </form>
          </div>
         
           
         </div>
      
    

          </div> 
<script>

$("input[name='is_ptorderbefore']").click(function(){
		  var checkid =  $("input[name='is_ptorderbefore']:checked").val();
		 //befortime
		 if(checkid == 1){
		 	$('#befortime').show();
		 }else{
		 	 $('#befortime').hide();
		 	 $("input[name='befortime']").val('0');
		 }
		  
	}); 
function outtimelist(){
	    var hourlist = '';
		for(var i=0;i<24;i++){
		     hourlist +='<option value="'+i+'">'+i+'点</option>';
		}
		var minilist = '';
		for(var i=0;i<60;i++){
		   minilist +='<option value="'+i+'">'+i+'分</option>';
		}
		var	htmls = '<form method="post" id="subyj" action="#" style="text-align:center;"><table>';
		htmls += '<tbody><tr>';
		htmls += '<td height="30px">从:</td>';
		htmls += '<td><select name="starthour">'+hourlist+'</select><select name="startminit">'+minilist+'</select></td></tr>';
		htmls += '<tr>';
		htmls += '<td height="30px">至:</td>';
		htmls += '<td><select name="endthour">'+hourlist+'</select><select name="endminit">'+minilist+'</select></td></tr>';
		htmls += '<tr>';
		htmls += '<td height="30px">说明</td>';
		htmls += '<td><input type="text" name="instr" value=""></td></tr>';
		htmls += '</tbody></table> ';
		htmls += '<input type="hidden" value="" name="shopid"> ';
		htmls += '<input type="button" value="确认提交" class="button" id="buttonsubyj" ></form>';
		art.dialog({
			id: 'testID1000',
			title:'新增配送时间段',
			content: htmls
		});
	}
	$('#buttonsubyj').live('click',function(){ 
		$.post('<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/order/module/savepostdate/datatype/json"),$_smarty_tpl);?>
', $('#subyj').serialize() ,function (data, textStatus){  
			if(data.error == false){
				diasucces('操作成功','');
			}else{
				if(data.error == true)
				{
					diaerror(data.msg); 
				}else{
					diaerror(data); 
				}
			} 
		}, 'json'); 
	});
	function detimelist(timeid){
		if(confirm('确定删除该配送时间段吗？')){ 
			//myajax('<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/order/module/delpostdate/datatype/json"),$_smarty_tpl);?>
',{id:timeid});
			$.post('<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/order/module/delpostdate/datatype/json"),$_smarty_tpl);?>
', {id:timeid} ,function (data, textStatus){  
			if(data.error == false){
				diasucces('操作成功','');
			}else{
				if(data.error == true)
				{
					diaerror(data.msg); 
				}else{
					diaerror(data); 
				}
			} 
		}, 'json'); 
		}else{
		 
		}
	}
	
	

	var dialogs ;
 function uploads(){  
 	  dialogs = art.dialog.open('<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/other/module/adminupload/func/uploadsucess"),$_smarty_tpl);?>
');
 	  dialogs.title('上传图片'); 
 }
 function uploadsucess(flag,obj,linkurl){
 	 if(flag == true){
 		alert(linkurl);
		dialogs.close();
		uploads();
 	 }else{ 
 		dialogs.close();
 	 $('#userlogo').val(linkurl);
   	$('#imgshow').attr('src',linkurl);
 	  $('#imgshow').show();
   }
 }  
 function uploadm(){  
 	  dialogs = art.dialog.open('<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/other/module/adminupload/func/uploadsucessm"),$_smarty_tpl);?>
');
 	  dialogs.title('上传图片'); 
 }
 function uploadsucessm(flag,obj,linkurl){
 	 if(flag == true){
 		alert(linkurl);
		dialogs.close();
		uploadm();
 	 }else{ 
 		dialogs.close();
 	 $('#shoplogo').val(linkurl);
 	$('#imgshows').attr('src',linkurl);
 	$('#imgshows').show(); 
   }
 }   
function uploadc(){  
 	  dialogs = art.dialog.open('<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/other/module/adminupload/func/uploadsucessc"),$_smarty_tpl);?>
');
 	  dialogs.title('上传图片'); 
 }
 function uploadsucessc(flag,obj,linkurl){
 	 if(flag == true){
 		alert(linkurl);
		dialogs.close();
		uploadc();
 	 }else{ 
 		dialogs.close();
 	 	$('#sitelogo').val(linkurl);
 	  $('#imgshowc').attr('src',linkurl);
 	  $('#imgshowc').show(); 
   }
 } 
 function uploadk(){
 	 dialogs = art.dialog.open('<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/other/module/adminupload/func/uploadsucessk"),$_smarty_tpl);?>
');
 	  dialogs.title('上传图片'); 
}
function uploadsucessk(flag,obj,linkurl){
 	 if(flag == true){
 		alert(linkurl);
		dialogs.close();
		uploadk();
 	 }else{ 
 		dialogs.close();
 	 	$('#html5logo').val(linkurl);
 	  $('#html5logoshow').attr('src',linkurl);
 	  $('#html5logoshow').show(); 
   }
 } 
 
</script>    
<!--newmain 结束-->
 
   	        	 	
               <div class="show_content_m_t3">
   	        	 </div>
   	        	 
   	       </div>
   	       <!-- show_content_m结束-->


   	  </div>
   	  <!-- right_content 结束-->
   	  
   </div>
   <!-- newmain_all 结束-->
</div>	
	
<!--newmain 结束-->
















<div style="clear:both;"></div>
<div class="newfoot">
	
	  版权所有@顶级源码论坛 www.Mx800.Com
</div>	
<script>
$(function(){ 
 $('.show_page a').wrap('<li></li>');
 $('.show_page').find('.current').eq(0).parent().css({'background':'#f60'}); 
});
   function limitalert(){
		diaerror("您暂无权限设置,如有疑问请联系QQ：316458278  网址：www.Mx800.com");
	}
</script>
</body>
</html>





<?php }} ?>